package com.whmall.service.crm.module.supplierchemical.dao;

import com.whmall.service.crm.entity.dto.supplierchemical.ChemicalCoaRecordReqDTO;
import com.whmall.service.crm.module.supplierchemical.entity.SupplierChemicalCoaRecordDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SupplierChemicalCoaRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SupplierChemicalCoaRecordDO record);

    int insertSelective(SupplierChemicalCoaRecordDO record);

    SupplierChemicalCoaRecordDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SupplierChemicalCoaRecordDO record);

    int updateByPrimaryKey(SupplierChemicalCoaRecordDO record);

    List<SupplierChemicalCoaRecordDO> selectByCoaIds(@Param("list") List<Long> list);

    List<SupplierChemicalCoaRecordDO> selectByChemicalCoaId(Long chemicalCoaId);

    void batchInsert(@Param("list") List<SupplierChemicalCoaRecordDO> list);

    void removeByIds(@Param("list") List<Long> list);

}